package mvp.hibernate.demo.main;

import mvp.hibernate.demo.controller.PlayerManager;
import mvp.hibernate.demo.model.Event;
import mvp.hibernate.demo.model.Player;

import java.util.Iterator;
import java.util.List;
import java.util.Set;

/**
 * Created by user on 29.06.2014.
 */
public class Main {
    public static void main(String[] args) {
        PlayerManager playerManager = new PlayerManager();

        List players = playerManager.getAllPlayers();
        Iterator<Player> iter = players.iterator();
        while (iter.hasNext()) {
            System.out.println(iter.next());
        }
    }
}
